/**
 * @filename:Habit 2021年9月14日
 * @project WishStar  V1.0
 * Copyright(c) 2020 huang Co. Ltd. 
 * All right reserved. 
 */
package com.huang.wishstar.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.tomcat.jni.Local;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**   
 * @Description:TODO(习惯表实体类)
 * 
 * @version: V1.0
 * @author: huang
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Habit extends Model<Habit> {

	private static final long serialVersionUID = 1631791654519L;
	
	@ApiModelProperty(name = "habitId" , value = "习惯id")
	private Integer habitId;
    
	@ApiModelProperty(name = "userId" , value = "用户id")
	private Integer userId;
    
	@ApiModelProperty(name = "habitTitle" , value = "习惯名")
	private String habitTitle;
    
	@ApiModelProperty(name = "frequency" , value = "打卡频率")
	private String frequency;
    
	@ApiModelProperty(name = "habitIcon" , value = "习惯图标")
	private Integer habitIcon;
    
	@ApiModelProperty(name = "dayNum" , value = "习惯坚持的天数")
	private Integer dayNum;
    
	@ApiModelProperty(name = "state" , value = "习惯状态，坚持中为1，归档为2")
	private Integer state;
    
	@ApiModelProperty(name = "habitDetails" , value = "打卡后的介绍")
	private String habitDetails;
    
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	@ApiModelProperty(name = "gmtCreate" , value = "创建时间 ")
	private LocalDate gmtCreate;
    
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
	@ApiModelProperty(name = "gmtModified" , value = "表示用户最后打卡时间")
	private LocalDate gmtModified;
    


}
